package com.iris.live.services.data.repositories;

import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * Created by Xin on 7/13/2016.
 */
@NoRepositoryBean
public interface FileRepository {

    String save(InputStream input, String fileName);

    void fetch(OutputStream output, String path);

    String uploadFile (MultipartFile file, String permit, String name);
}
